const https = require("https");
var reqUrl = "https://api.jisuapi.com/area/province?appkey=6f834852101a2590";
https.get(reqUrl, (res) => {
    var str = "";
    res.on("data", (chunk) => {
        str += chunk;
    });
    res.on("end", () => {
        var obj = JSON.parse(str);
        // console.log(obj);
        var name = obj.result;
        for (var i = 0; i < name.length; i++) {
            console.log(name[i].name);
        }
    });
});
